package com.forum.module.blog.service.user;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.forum.module.blog.dal.dataobject.user.UserDO;
import com.forum.module.blog.dal.mysql.user.UserMapper;
import org.springframework.stereotype.Service;

/**
 * 后台用户 Service 实现类
 *
 * @author zihan.ouyang
 */
@Service("userService")
public class UserServiceImpl extends ServiceImpl<UserMapper, UserDO> implements UserService {
    private final UserMapper userMapper;

    public UserServiceImpl(UserMapper userMapper) {
        this.userMapper = userMapper;
    }

    @Override
    public UserDO selelctById(Long userId) {
        UserDO userDO = userMapper.selectById(userId);
        return userDO;
    }
}
